/**
 * 
 */
package org.jenkon.io.filter;

import java.io.File;
import java.io.Serializable;

/**
 * {@link FileFilter} class for to check is {@link File} writable.
 * 
 * @author Jens Konopka
 * 
 */
public class CanWriteFileFilter implements FileFilter, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2070422277332754900L;

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.io.FileFilter#accept(java.io.File)
	 */
	public boolean accept(final File pathname) {
		return pathname.canWrite();
	}

}
